package com.wsj.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.wsj.util.page.PageResultSet;
import com.wsj.web.subclass.displayBean.Magazine.MagazineClassExtendBean;
import com.wsj.web.vo.homeSite.MagazineClass;

public interface IMagazineClassDao {

	public void add(MagazineClass magazineClass) throws DataAccessException;
	
	public void delete(MagazineClass magazineClass) throws DataAccessException;
	
	public void update(MagazineClass magazineClass) throws DataAccessException;
	
	public MagazineClass loadById(Integer id) throws DataAccessException;
	
	public MagazineClass loadByNameAndNameId(String name,Integer NameId) throws DataAccessException;
	
	public List loadByNameId(Integer magazineNameId) throws DataAccessException;
	
	public List loadTopByNameId(Integer magazineNameId,Integer top) throws DataAccessException;
	
	public PageResultSet loadPageList(String qkName, String lmName, Short shanchu, Short istj, String beginDate, String endDate, Integer page, Integer pageSize) throws DataAccessException;

	/*****
	 * 通过杂志名id,获取所有
	 * @param magazineNameId
	 * @return
	 * @throws DataAccessException
	 */
	public List<MagazineClassExtendBean> loadMagazineClassAndNewsDao(Integer magazineNameId)throws DataAccessException;
	
}
